﻿#include "MyWidget.h"
#include "ui_MyWidget.h"
#include <QMessageBox>

MyWidget::MyWidget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::MyWidget)
{
    ui->setupUi(this);
    setAttribute(Qt::WA_StyledBackground);
}

MyWidget::~MyWidget()
{
    delete ui;
}

void MyWidget::on_pushButton_clicked()
{
    QMessageBox::information(this, QStringLiteral("提示"), QStringLiteral("点击了"));
}
